/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#include "PhysicsEngine.h"

#include "DynamicsWorld.h"

namespace PQEngine
{
	PhysicsEngine::PhysicsEngine()
	{
	}

	PhysicsEngine::~PhysicsEngine()
	{
	}

	PhysicsEngine& PhysicsEngine::getSingleton()
	{
		static PhysicsEngine inst;
		return inst;
	}

	void PhysicsEngine::init()
	{
		DynamicsWorld::getSingleton().init();
	}

	void PhysicsEngine::update(float deltaT)
	{
		DynamicsWorld::getSingleton().stepSimulation(deltaT);
	}

}
